package portal.action.views;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class ModelAction {
	@RequestMapping(value="/views/model/create",method=RequestMethod.GET)
	public String modelCreate(){
		//req.setAttribute("algorithmId", algorithmId);
		return "model/modelCreate";
	}

	@RequestMapping(value="/views/model/list",method=RequestMethod.GET)
	public String modelList(){
		//req.setAttribute("algorithmId", algorithmId);
		return "model/modelList";
	}
	@RequestMapping(value="/views/model/edit",method=RequestMethod.GET)
	public String modelEdit(String modelId,HttpServletRequest req){
		req.setAttribute("modelId", modelId);
		return "model/modelCreate";
	}

	@RequestMapping(value="/views/model/edit/data/rename",method=RequestMethod.GET)
	public String modelDataRename(){
		return "model/modelDataRename";
	}
	@RequestMapping(value="/views/model/edit/algorithm/set",method=RequestMethod.GET)
	public String modelAlgorithmSet(){
		return "model/modelAlgorithmSet";
	}
	@RequestMapping(value="/views/model/edit/save",method=RequestMethod.GET)
	public String modelSave(){
		return "model/modelSave";
	}
	@RequestMapping(value="/views/model/edit/alert",method=RequestMethod.GET)
	public String modelAltert(){
		return "model/modelAlert";
	}
}
